home *** CD-ROM | disk | FTP | other *** search
/ cyber.net interactivo 3 / inter@ivo 1996-04.iso / cybint3 / bin / tmn.dxr / 00021.ls < prev    next >
Encoding:
Text File  |  1996-03-21  |  4.3 KB  |  126 lines

  1. on mouseDown
  2.   global Tempos, Locx, Locy, Osprite
  3.   set Osprite to the clickOn
  4.   if Osprite <> 0 then
  5.     sound playFile 3, "..\som\tmboneco.wav"
  6.   end if
  7.   set Locx to the locH of sprite Osprite
  8.   set Locy to the locV of sprite Osprite
  9.   set clickOn to 0
  10. end
  11.  
  12. on mouseUp
  13.   global Tempos, Locx, Locy, Osprite, pontos, contac, OSpritec, pscore, guarda1, guarda2
  14.   if (guarda1 <> Osprite) and (guarda2 <> Osprite) then
  15.     if ((the locH of sprite Osprite > 240) and (the locH of sprite Osprite < 438) and (the locV of sprite Osprite > 27) and (the locV of sprite Osprite < 296) and (Osprite = 3)) or ((the locH of sprite Osprite > 438) and (the locH of sprite Osprite < 632) and (the locV of sprite Osprite > 29) and (the locV of sprite Osprite < 298) and (Osprite = 4)) then
  16.       set pontos to pontos + 1
  17.       if guarda1 = 0 then
  18.         set guarda1 to Osprite
  19.       end if
  20.       set Osprite to 0
  21.     end if
  22.   end if
  23.   if (Osprite <> 0) and (Osprite <> 3) and (Osprite <> 4) and ((the locH of sprite Osprite > 240) and (the locH of sprite Osprite < 600) and (the locV of sprite Osprite > 37) and (the locV of sprite Osprite < 298)) then
  24.     set the locH of sprite Osprite to Locx
  25.     set the locV of sprite Osprite to Locy
  26.     sound playFile 3, "..\som\tmatende.wav"
  27.     set contac to contac + 1
  28.     set pscore to pscore - 50
  29.     set the visible of sprite OSpritec to 0
  30.     set OSpritec to OSpritec + 1
  31.   else
  32.     if (Osprite <> 3) or (Osprite <> 4) then
  33.       set the locH of sprite Osprite to Locx
  34.       set the locV of sprite Osprite to Locy
  35.     end if
  36.   end if
  37.   if contac = 5 then
  38.     set the visible of sprite 24 to 1
  39.     sound playFile 3, "..\som\tmatende.wav"
  40.     go(the frame + 1)
  41.   end if
  42.   if pontos = 2 then
  43.     sound playFile 3, "..\som\tmliga.wav"
  44.     go("etapa2")
  45.   end if
  46. end
  47.  
  48. on exitFrame
  49.   global pscore, contac
  50.   if pscore = 450 then
  51.     puppetSprite(21, 1)
  52.     puppetSprite(22, 1)
  53.     set the locH of sprite 21 to 19
  54.     set the locV of sprite 21 to 197
  55.     set the visible of sprite 21 to 1
  56.     set the visible of sprite 23 to 0
  57.     set the locH of sprite 22 to 43
  58.     set the locV of sprite 22 to 186
  59.   else
  60.     if pscore = 400 then
  61.       puppetSprite(23, 1)
  62.       set the visible of sprite 22 to 0
  63.       set the locH of sprite 23 to 46
  64.       set the locV of sprite 23 to 185
  65.       set the visible of sprite 23 to 1
  66.     else
  67.       if pscore = 350 then
  68.         puppetSprite(20, 1)
  69.         set the visible of sprite 21 to 0
  70.         set the locH of sprite 20 to 19
  71.         set the locV of sprite 20 to 196
  72.         set the visible of sprite 20 to 1
  73.         set the visible of sprite 23 to 0
  74.         set the visible of sprite 22 to 1
  75.       else
  76.         if pscore = 300 then
  77.           set the visible of sprite 22 to 0
  78.           set the visible of sprite 23 to 1
  79.         else
  80.           if pscore = 250 then
  81.             puppetSprite(19, 1)
  82.             set the visible of sprite 20 to 0
  83.             set the locH of sprite 19 to 19
  84.             set the locV of sprite 19 to 194
  85.             set the visible of sprite 23 to 0
  86.             set the visible of sprite 19 to 1
  87.             set the visible of sprite 22 to 1
  88.             set the visible of sprite 17 to 1
  89.           else
  90.             if pscore = 200 then
  91.               set the visible of sprite 22 to 0
  92.               set the visible of sprite 23 to 1
  93.             else
  94.               if pscore = 150 then
  95.                 puppetSprite(18, 1)
  96.                 set the visible of sprite 19 to 0
  97.                 set the locH of sprite 18 to 22
  98.                 set the locV of sprite 18 to 194
  99.                 set the visible of sprite 18 to 1
  100.                 set the visible of sprite 23 to 0
  101.                 set the visible of sprite 22 to 1
  102.               else
  103.                 if pscore = 100 then
  104.                   set the visible of sprite 22 to 0
  105.                   set the visible of sprite 23 to 1
  106.                 else
  107.                   if pscore = 50 then
  108.                     set the visible of sprite 18 to 0
  109.                     set the visible of sprite 23 to 0
  110.                     set the visible of sprite 22 to 1
  111.                   else
  112.                     if pscore = 0 then
  113.                       set the visible of sprite 22 to 0
  114.                     end if
  115.                   end if
  116.                 end if
  117.               end if
  118.             end if
  119.           end if
  120.         end if
  121.       end if
  122.     end if
  123.   end if
  124.   go(the frame)
  125. end
  126.